package com.big.app.controller;

import com.big.app.bo.FoodPayBo;
import com.big.app.service.FoodPayService;
import com.big.app.vo.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController //@Controller+@ResponseBody
@RequestMapping("/api/pay/") //映射地址
@CrossOrigin //跨域
@Api(value = "实现支付相关操作",tags = "实现支付相关操作")
public class FoodPayController {

    @Autowired
    private FoodPayService service;

    @PostMapping("create.do")
    @ApiOperation(value = "创建支付")
    public R create(@RequestBody FoodPayBo payBo){
        return service.foodPay(payBo);
    }

}
